<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>边距盒子模型 | 前端学习笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="cdd">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/block-inline-level.html" />
    
    
    <link rel="prev" href="../../md/css/text-shadow.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.12"
        data-chapter-title="边距盒子模型"
        data-filepath="md/css/margin-box.md"
        data-basepath="../.."
        data-revision="Fri Jan 05 2018 09:31:29 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/first.html">
            
                
                    <a href="../../md/html/first.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        入门
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/html/abiaoqian.html">
            
                
                    <a href="../../md/html/abiaoqian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/html/amaodian.html">
            
                
                    <a href="../../md/html/amaodian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签锚点
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="md/html/img.html">
            
                
                    <a href="../../md/html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        img标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/html/table.html">
            
                
                    <a href="../../md/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="md/html/area.html">
            
                
                    <a href="../../md/html/area.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        area标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="md/html/audio.html">
            
                
                    <a href="../../md/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        audio标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="md/html/picture.html">
            
                
                    <a href="../../md/html/picture.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        picture标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="md/html/video.html">
            
                
                    <a href="../../md/html/video.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        video标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="md/html/base.html">
            
                
                    <a href="../../md/html/base.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        base标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="md/html/character-entities.html">
            
                
                    <a href="../../md/html/character-entities.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="md/html/dl.html">
            
                
                    <a href="../../md/html/dl.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.12.</b>
                        
                        dl标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="md/html/gitbook.html">
            
                
                    <a href="../../md/html/gitbook.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.13.</b>
                        
                        gitbook
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="md/html/icon.html">
            
                
                    <a href="../../md/html/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.14.</b>
                        
                        icon标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="md/html/iframe.html">
            
                
                    <a href="../../md/html/iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.15.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="md/html/nodejs.html">
            
                
                    <a href="../../md/html/nodejs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.16.</b>
                        
                        nodejs
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="md/html/ol.html">
            
                
                    <a href="../../md/html/ol.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.17.</b>
                        
                        ol标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="md/html/ul.html">
            
                
                    <a href="../../md/html/ul.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.18.</b>
                        
                        ul标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="md/html/weibo-component.html">
            
                
                    <a href="../../md/html/weibo-component.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.19.</b>
                        
                        weibo组件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="md/html/form.html">
            
                
                    <a href="../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.20.</b>
                        
                        form标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="md/html/register.html">
            
                
                    <a href="../../md/html/register.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.21.</b>
                        
                        register
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css.html">
            
                
                    <a href="../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/cssimport.html">
            
                
                    <a href="../../md/css/cssimport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS的引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/elementselector.html">
            
                
                    <a href="../../md/css/elementselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        element元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/class&amp;idselector.html">
            
                
                    <a href="../../md/css/class&amp;idselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        class&amp;id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/css/relationselector.html">
            
                
                    <a href="../../md/css/relationselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        relation关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="md/css/attributeselectors.html">
            
                
                    <a href="../../md/css/attributeselectors.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="md/css/Pseudo-classselector.html">
            
                
                    <a href="../../md/css/Pseudo-classselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="md/css/pseudo-elementselector.html">
            
                
                    <a href="../../md/css/pseudo-elementselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="md/css/font.html">
            
                
                    <a href="../../md/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        font字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="md/css/color.html">
            
                
                    <a href="../../md/css/color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        color颜色
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="md/css/text-decoration.html">
            
                
                    <a href="../../md/css/text-decoration.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        text-decoration文本装饰
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="md/css/text-shadow.html">
            
                
                    <a href="../../md/css/text-shadow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        text-shadow文本阴影
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.12" data-path="md/css/margin-box.html">
            
                
                    <a href="../../md/css/margin-box.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        边距盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="md/css/block-inline-level.html">
            
                
                    <a href="../../md/css/block-inline-level.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.13.</b>
                        
                        块级元素、行内元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="md/css/inline-block-align.html">
            
                
                    <a href="../../md/css/inline-block-align.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.14.</b>
                        
                        行内块元素的垂直对齐
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.15" data-path="md/css/vertical-align.html">
            
                
                    <a href="../../md/css/vertical-align.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.15.</b>
                        
                        vertical-align元素垂直对齐方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.16" data-path="md/css/margin-border.html">
            
                
                    <a href="../../md/css/margin-border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.16.</b>
                        
                        margin相邻的奇异现象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.17" data-path="md/css/Document-flow.html">
            
                
                    <a href="../../md/css/Document-flow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.17.</b>
                        
                        Document flow文档流
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.18" data-path="md/css/float.html">
            
                
                    <a href="../../md/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.18.</b>
                        
                        float浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.19" data-path="md/css/floatexercise.html">
            
                
                    <a href="../../md/css/floatexercise.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.19.</b>
                        
                        float浮动练习
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.20" data-path="md/css/images.html">
            
                
                    <a href="../../md/css/images.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.20.</b>
                        
                        图片处理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.21" data-path="md/css/word.html">
            
                
                    <a href="../../md/css/word.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.21.</b>
                        
                        文字处理
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/work-box/study.html">
            
                
                    <a href="../../md/work-box/study.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        工具安装使用
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="md/work-box/git.html">
            
                
                    <a href="../../md/work-box/git.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        git
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/plastic-JavaScript/JavaScript-chedan.html">
            
            <span><b>4.</b> JavaScript</span>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >前端学习笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h3 id="&#x8FB9;&#x8DDD;&#x76D2;&#x5B50;&#x6A21;&#x578B;">&#x8FB9;&#x8DDD;&#x76D2;&#x5B50;&#x6A21;&#x578B;</h3>
<h4 id="&#x5982;&#x56FE;">&#x5982;&#x56FE;</h4>
<p><img src="../../media/box.png" alt="&#x8FB9;&#x8DDD;&#x76D2;&#x5B50;&#x56FE;"></p>
<h3 id="padding&#x5185;&#x8FB9;&#x8DDD;">padding&#x5185;&#x8FB9;&#x8DDD;</h3>
<p><strong>&#x68C0;&#x7D22;&#x6216;&#x8BBE;&#x7F6E;&#x5BF9;&#x8C61;&#x56DB;&#x8FB9;&#x7684;&#x5185;&#x90E8;&#x8FB9;&#x8DDD;&#x3002;</strong><br>
&#x5982;&#x679C;&#x63D0;&#x4F9B;&#x5168;&#x90E8;&#x56DB;&#x4E2A;&#x53C2;&#x6570;&#x503C;&#xFF0C;&#x5C06;&#x6309;&#x4E0A;&#x3001;&#x53F3;&#x3001;&#x4E0B;&#x3001;&#x5DE6;&#x7684;&#x987A;&#x5E8F;&#x4F5C;&#x7528;&#x4E8E;&#x56DB;&#x8FB9;&#x3002;<br>
&#x5982;&#x679C;&#x53EA;&#x63D0;&#x4F9B;&#x4E00;&#x4E2A;&#xFF0C;&#x5C06;&#x7528;&#x4E8E;&#x5168;&#x90E8;&#x7684;&#x56DB;&#x8FB9;&#x3002;<br>
&#x5982;&#x679C;&#x63D0;&#x4F9B;&#x4E24;&#x4E2A;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x3001;&#x4E0B;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x7528;&#x4E8E;&#x5DE6;&#x3001;&#x53F3;&#x3002;<br>
&#x5982;&#x679C;&#x63D0;&#x4F9B;&#x4E09;&#x4E2A;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x7528;&#x4E8E;&#x5DE6;&#x3001;&#x53F3;&#xFF0C;&#x7B2C;&#x4E09;&#x4E2A;&#x7528;&#x4E8E;&#x4E0B;&#x3002;<br>
&#x975E;&#x66FF;&#x4EE3;(non-Replaced)&#x884C;&#x5185;&#x5143;&#x7D20;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x8BE5;&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;&#x5DE6;&#x3001;&#x53F3;&#x4E24;&#x8FB9;&#x7684;&#x5185;&#x8865;&#x4E01;&#xFF1B;&#x82E5;&#x8981;&#x8BBE;&#x7F6E;&#x4E0A;&#x3001;&#x4E0B;&#x4E24;&#x8FB9;&#x7684;&#x5185;&#x8865;&#x4E01;&#xFF0C;&#x5FC5;&#x987B;&#x5148;&#x4F7F;&#x8BE5;&#x5BF9;&#x8C61;&#x8868;&#x73B0;&#x4E3A;&#x5757;&#x7EA7;&#x6216;&#x5185;&#x8054;&#x5757;&#x7EA7;&#x3002;<br>
&#x5BF9;&#x5E94;&#x7684;&#x811A;&#x672C;&#x7279;&#x6027;&#x4E3A;padding&#x3002;</p>
<h3 id="margin&#x5916;&#x8FB9;&#x8DDD;">margin&#x5916;&#x8FB9;&#x8DDD;</h3>
<p><strong>&#x68C0;&#x7D22;&#x6216;&#x8BBE;&#x7F6E;&#x5BF9;&#x8C61;&#x56DB;&#x8FB9;&#x7684;&#x5185;&#x90E8;&#x8FB9;&#x8DDD;&#x3002;</strong><br>
&#x5982;&#x679C;&#x63D0;&#x4F9B;&#x5168;&#x90E8;&#x56DB;&#x4E2A;&#x53C2;&#x6570;&#x503C;&#xFF0C;&#x5C06;&#x6309;&#x4E0A;&#x3001;&#x53F3;&#x3001;&#x4E0B;&#x3001;&#x5DE6;&#x7684;&#x987A;&#x5E8F;&#x4F5C;&#x7528;&#x4E8E;&#x56DB;&#x8FB9;&#x3002;<br>
&#x5982;&#x679C;&#x53EA;&#x63D0;&#x4F9B;&#x4E00;&#x4E2A;&#xFF0C;&#x5C06;&#x7528;&#x4E8E;&#x5168;&#x90E8;&#x7684;&#x56DB;&#x8FB9;&#x3002;<br>
&#x5982;&#x679C;&#x63D0;&#x4F9B;&#x4E24;&#x4E2A;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x3001;&#x4E0B;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x7528;&#x4E8E;&#x5DE6;&#x3001;&#x53F3;&#x3002;<br>
&#x5982;&#x679C;&#x63D0;&#x4F9B;&#x4E09;&#x4E2A;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x7528;&#x4E8E;&#x5DE6;&#x3001;&#x53F3;&#xFF0C;&#x7B2C;&#x4E09;&#x4E2A;&#x7528;&#x4E8E;&#x4E0B;&#x3002;<br>
&#x975E;&#x66FF;&#x4EE3;(non-Replaced)&#x884C;&#x5185;&#x5143;&#x7D20;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x8BE5;&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;&#x5DE6;&#x3001;&#x53F3;&#x4E24;&#x8FB9;&#x7684;&#x5185;&#x8865;&#x4E01;&#xFF1B;&#x82E5;&#x8981;&#x8BBE;&#x7F6E;&#x4E0A;&#x3001;&#x4E0B;&#x4E24;&#x8FB9;&#x7684;&#x5185;&#x8865;&#x4E01;&#xFF0C;&#x5FC5;&#x987B;&#x5148;&#x4F7F;&#x8BE5;&#x5BF9;&#x8C61;&#x8868;&#x73B0;&#x4E3A;&#x5757;&#x7EA7;&#x6216;&#x5185;&#x8054;&#x5757;&#x7EA7;&#x3002;<br>
&#x5BF9;&#x5E94;&#x7684;&#x811A;&#x672C;&#x7279;&#x6027;&#x4E3A;padding&#x3002;</p>
<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset=&quot;UTF-8&quot;&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;style type=&quot;text/css&quot;&gt;
        body{
            height:400px;
            margin: 0;
        }
        div{
            background-color: #ffff00;
            width: 200px;/*&#x56FA;&#x5B9A;&#x503C;&#xFF0C;&#x56FA;&#x5B9A;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x4E0D;&#x4F1A;&#x8DDF;&#x968F;&#x9875;&#x9762;&#x5927;&#x5C0F;&#x6539;&#x53D8;&#x800C;&#x6539;&#x53D8;*/
            width: 50%;/*&#x76F8;&#x5BF9;&#x503C;&#xFF0C;&#x76F8;&#x5BF9;&#x4E8E;&#x7236;&#x5143;&#x7D20;&#x7684;&#x5BBD;&#x5EA6;&#xFF0C;&#x8FDB;&#x884C;&#x767E;&#x5206;&#x6BD4;&#x8BA1;&#x7B97;&#xFF0C;&#x76F8;&#x5BF9;&#x7075;&#x6D3B;*/
            width: 200px;
            height: 50%;/*&#x76F8;&#x5BF9;&#x503C;&#xFF0C;&#x76F8;&#x5BF9;&#x4E8E;&#x7236;&#x5143;&#x7D20;&#x7684;&#x9AD8;&#x5EA6;&#xFF0C;&#x8FDB;&#x884C;&#x767E;&#x5206;&#x6BD4;&#x8BA1;&#x7B97;*/
            height: 200px;
            /*&#x5185;&#x8FB9;&#x8DDD;
                  &#x63A7;&#x5236;&#x8FB9;&#x6846;&#x4EE5;&#x5185;&#x7684;&#x7A7A;&#x9699;&#x5927;&#x5C0F;&#xFF0C;&#x5177;&#x4F53;&#x662F;&#x6307;&#x5185;&#x5BB9;&#x5230;&#x8FB9;&#x6846;&#x4E4B;&#x95F4;&#x7684;&#x7A7A;&#x4F4D;&#x3002;
             */
            padding: 50px 40px 30px 20px;/*&#x4E0A;50px &#x53F3;40px &#x4E0B;30px &#x5DE6;20px&#xFF0C;&#x987A;&#x65F6;&#x9488;&#x8BBE;&#x7F6E;4&#x4E2A;&#x65B9;&#x5411;&#x5185;&#x8FB9;&#x8DDD;*/
            padding: 50px 40px 30px;/*&#x4E0A;50px &#x5DE6;&#x53F3;40px &#x4E0B;30px*/
            padding: 50px 40px;/*&#x4E0A;&#x4E0B;50px &#x5DE6;&#x53F3;40px*/
            padding: 50px;/*&#x56DB;&#x4E2A;&#x65B9;&#x5411;&#x90FD;&#x662F;50px&#x7684;&#x5185;&#x8FB9;&#x8DDD;*/

            /*&#x5916;&#x8FB9;&#x8DDD;
             * margin
             */
            margin: 30px 20px 10px 5px;/*&#x4E0A;30px &#x53F3;20px &#x4E0B;10px &#x5DE6;5px&#xFF0C;&#x987A;&#x65F6;&#x9488;&#x8BBE;&#x7F6E;4&#x4E2A;&#x65B9;&#x5411;&#x5916;&#x8FB9;&#x8DDD;*/
            margin: 30px 20px 10px;/*&#x4E0A;30 &#x5DE6;&#x53F3;20px &#x4E0B;10px*/
            margin: 30px 30px;/*&#x4E0A;&#x4E0B;30px &#x5DE6;&#x53F3;30px*/
            margin: 50px;/*&#x4E0A;&#x4E0B;&#x5DE6;&#x53F3;&#x5168;&#x4E3A;50px*/


            /*
             margin&#xFF1A;&#x5916;&#x8FB9;&#x8DDD;
             &#x6CE8;&#x610F;&#xFF1A;&#x6C34;&#x5E73;&#x65B9;&#x5411;&#xFF0C;&#x76F8;&#x90BB;&#x5143;&#x7D20;&#x7684;margin&#x662F;&#x53E0;&#x52A0;&#x7684;&#xFF0C;
                   &#x5782;&#x76F4;&#x65B9;&#x5411;&#xFF0C;&#x76F8;&#x90BB;&#x5143;&#x7D20;&#x7684;margin&#x662F;&#x5408;&#x5E76;&#x7684;&#xFF08;&#x53D6;&#x5927;&#x503C;&#x4E3A;&#x51C6;&#xFF09;
             * */

            border-width: 10px;
            border-color: skyblue;
            border-style: solid;
        }
    &lt;/style&gt;
    &lt;body&gt;
        &lt;div&gt;
            &#x6211;&#x662F;&#x4E00;&#x4E2A;&#x76D2;&#x5B50;
        &lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/css/text-shadow.html" class="navigation navigation-prev " aria-label="Previous page: text-shadow文本阴影"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/block-inline-level.html" class="navigation navigation-next " aria-label="Next page: 块级元素、行内元素"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
